function FindProxyForURL(url, host) {
  if (shExpMatch(host, "*.internal.com")) {
    return "PROXY 127.0.0.1:8899";
  }
  
  if (dnsDomainIs(host, ".github.com") || 
      dnsDomainIs(host, ".openai.com")|| 
      dnsDomainIs(host, ".google.com")) {
    return "PROXY 127.0.0.1:1080";
  }

  return "DIRECT";
}
